// import TreeSelect from '../components/treeSelect.vue'
import SelectCompanyAndProject from '@/components/Select/SelectCompanyAndProject.vue'
import SelectDepartment from '../components/SelectDepartment.vue'
import SelectLabelTypes from '../components/SelectLabelTypes.vue'
import OrgTreeSelect from '@/components/OrgTreeSelect'
const anualConBase = {
  searchArr: [
    {
      name: '预约单位',
      valueKey: 'searchQuery',
      type: OrgTreeSelect,
      attrs: {
        isNeedOrgId: true,
      }
    },
    // {
    //     name: '预约单位',
    //     valueKey: 'unitId',
    //     type: SelectCompanyAndProject,
    //     autoSelect: true
    // },
    {
        name: '预约部门',
        keyValue: 'searchQuery._checked',
        valueKey: 'reserveDeptId',
        type: SelectDepartment
    },
    {
        name: '会议时间',
        value: 'time',
        type: 'dateRange'
    },
    {
        name: '会议级别',
        valueKey: 'meetingLevelId',
        labelType: 11,
        type: SelectLabelTypes
    }
  ],
  // 序号 预约单位 预约部门 会议名称 会议时间 会议地点 会议形式 参会领导 会议服务 会议状态 发送会议通知
  columns: [
    {
      title: '序号',
      width: '65px',
      scopedSlots: { customRender: 'serial' }
    },
    {
        title: '预约单位',
        width: '150px',
        ellipsis: true,
        dataIndex: 'unitName',
    },
    {
        title: '预约部门',
        // width: '300px',
        ellipsis: true,
        dataIndex: 'reserveDeptName',
    },
    {
        title: '会议名称',
        width: '200px',
        ellipsis: true,
        dataIndex: 'meetingName',
    },
    {
        title: '会议级别',
        width: '110px',
        dataIndex: 'meetingLevelString',
    },
    {
        title: '会议时间',
        width: '280px',
        dataIndex: 'startTime',
        scopedSlots: { customRender: 'meetTime' },
    },
    {
        title: '会议地点',
        width: '200px',
        ellipsis: true,
        dataIndex: 'meetingRoomString',
    },
    {
        title: '会议形式',
        dataIndex: 'meetingFormString',
        width: '100px',
        // scopedSlots: { customRender: 'meetType' },
    },
    {
        title: '参会领导',
        dataIndex: 'attendLeaderString',
        width: '250px',
        ellipsis: true,
    },
    {
        title: '会议服务',
        dataIndex: 'meetingServicesString',
        width: '200px',
        ellipsis: true,
    },
    {
        title: '会议状态',
        dataIndex: 'status',
        // ellipsis: true,
        width: '100px',
    },
    {
        title: '发送会议通知',
        dataIndex: 'sendMeetingNotice',
        // ellipsis: true,
        scopedSlots: { customRender: 'sendMeetingNotice' },
        width: '120px',
    },
    {
        title: '操作',
        dataIndex: 'operation',
        fixed: 'right',
        width: '240px',
        scopedSlots: { customRender: 'operation' },
    },
  ],
}

export default anualConBase
